using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PACKETPARSERMAX20.CORE;

namespace PACKETPARSERMAX20.CORE.DEFINITIONS
{
    public class SMSG_QUESTGIVER_QUEST_COMPLETE_DEF : DefinitionBase
    {

        public override bool Process()
        {
            ResetPosition();

            UInt32 questid = ReadUInt32();
            if (ClientBuild < 9183)
            {
                UInt32 UInt32_1 = ReadUInt32();
            }


            UInt32 XP = ReadUInt32();
            UInt32 RewOrReqMoney = ReadUInt32();

            UInt32 Honorpoints = ReadUInt32();                                      // new 2.3.0, HonorPoints?
            UInt32 RewItemsCount = ReadUInt32();           // max is 5

            for (UInt32 i = 0; i < RewItemsCount; ++i)
            {

                UInt32 RewItemId = ReadUInt32();
                UInt32 RewItemCount = ReadUInt32();

            }

            return Validate();
        }
    }
}

